var GownFullHTMLTextareaAdapter = GownFullHTMLInputTextAdapter.extend({
	constructor: function(obj)
	{
		this.base(obj);
	},
	clone: function(obj)
	{
		return new GownFullHTMLTextareaAdapter(obj);
	},

/* 
  The following codes are adopted from DocumentSelection library of JSVK

  Visit http://debugger.ru/demo/projects/virtualkeyboard/demo_inline.html for Virtual Keyboard

wonghang: updated to trunk 345. 2007-10-27
*/
	GetSelectionStart: function()
	{
		var off;
		try {
			this.obj.document.body.setActive();
			off = Math.abs(document.selection.createRange().moveStart("character", -100000000));
			/*
			*  test for the TEXTAREA's dumb behavior
			*/
			/*
			*  calculate node offset
			*/
			var r = document.body.createTextRange();
			r.moveToElementText(this.obj);
			var sTest = Math.abs(r.moveStart("character",-100000000));
			off -= sTest;
		}
		catch (e) {
			try {
				off = this.obj.selectionStart;
			}
			catch (e) {
				off = 0;
			}
		}
		return off;
	}
});
